#include <REGX52.H>
#include "MATRIXKEY.H"
#include "NIXIE.H"

void main()
{
	Nixie(1, 0);
	while(1)
	{
		unsigned char num = MatrixKey();
		if(num != 0)
		{
			Nixie(1, num - 1);
		}
	}
}